package cn.tedu.fengyuback.personal.mapper;

import cn.tedu.fengyuback.personal.pojo.dto.ArticlesQuery;
import cn.tedu.fengyuback.personal.pojo.dto.QuestionFollowsQuery;
import cn.tedu.fengyuback.personal.pojo.dto.QuestionQuery;
import cn.tedu.fengyuback.personal.pojo.entity.Question;
import cn.tedu.fengyuback.personal.pojo.vo.ArticlesVO;
import cn.tedu.fengyuback.personal.pojo.vo.QuestionFollowsVO;
import cn.tedu.fengyuback.personal.pojo.vo.QuestionVO;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface QuestionMapper {

    List<QuestionVO> selectQuestion(QuestionQuery questionQuery);

    QuestionFollowsVO selectQuestionFollows(QuestionFollowsQuery questionFollowsQuery);

    void insertQuestionFollows(QuestionFollowsVO questionFollows);

    void deleteQuestionFollows(QuestionFollowsQuery questionFollowsQuery);

    void updateQuestion(Question question);
}
